/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package redes;

/**
 *
 * @author Thiago
 */
public class Link {
    Roteador r1;
    int ip1;
    int mascara1;
    
    Roteador r2;
    int ip2;
    int mascara2;
    
    int distancia;
    
    public Link(Roteador r1, int ip1, int mascara1, Roteador r2, int ip2, int mascara2, int distancia){
        this.r1 = r1;
        this.ip1 = ip1;
        this.mascara1 = mascara1;
        
        this.r2 = r2;
        this.ip2 = ip2;
        this.mascara2 = mascara2;
        
        this.distancia = distancia;
    }

    public Roteador getR1() {
        return r1;
    }

    public int getIp1() {
        return ip1;
    }

    public int getMascara1() {
        return mascara1;
    }

    public Roteador getR2() {
        return r2;
    }

    public int getIp2() {
        return ip2;
    }

    public int getMascara2() {
        return mascara2;
    }

    public int getDistancia() {
        return distancia;
    }
    
    
}
